home *** CD-ROM | disk | FTP | other *** search
/ SGI Hot Mix 17 / Hot Mix 17.iso / HM17_SGI / .bin / netscape / mailcap.hm17 < prev    next >
Text File  |  1997-07-25  |  13KB  |  269 lines

  1. # Copyright (c) 1991 Bell Communications Research, Inc. (Bellcore)
  2. # Permission to use, copy, modify, and distribute this material 
  3. # for any purpose and without fee is hereby granted, provided 
  4. # that the above copyright notice and this permission notice 
  5. # appear in all copies, and that the name of Bellcore not be 
  6. # used in advertising or publicity pertaining to this 
  7. # material without the specific, prior written permission 
  8. # of an authorized representative of Bellcore.  BELLCORE 
  9. # MAKES NO REPRESENTATIONS ABOUT THE ACCURACY OR SUITABILITY 
  10. # OF THIS MATERIAL FOR ANY PURPOSE.  IT IS PROVIDED "AS IS", 
  11. # WITHOUT ANY EXPRESS OR IMPLIED WARRANTIES.
  12. #
  13. # Mailcap file for Netscape
  14. #
  15. # Users may override or extend this with a .mailcap file in
  16. # their own directory.  Netscape will search both mailcap
  17. # files looking for a match.
  18. #
  19. # imgview currently can view SGI, TIFF, JFIF/JPEG, and GIF formats.
  20. # Netscape has builtin viewing support for GIF and JFIF and if the
  21. # mailcap entries for these are commented out, it will display those
  22. # images as a new page when downloaded.  However, for consistency
  23. # the default is to use the external viewer.
  24. #
  25. # First a note about syntax:
  26. #    The first token in a configuration line represents a mime type.
  27. #    A mime type is of the form "SubGroup/Item" and either token
  28. #    can be replaced by the wildcard character "*"
  29.  
  30. #    the second token is the command that you would run
  31. #    when the specified mime type is encountered.  An example
  32. #    would be "xv %s" where %s will be replaced by a filename
  33.  
  34. #    remaining tokens represent name value pairs.
  35.  
  36. #    the "test=" pair invokes the test command
  37. #    specified and checks the UNIX shell return code to see if the
  38. #    test passed.  If the test passes the mime mapping is made, otherwise
  39. #    the mapping is not made.
  40.  
  41. #    the "stream-buffer-size=" pair tells the application
  42. #    to use a popen command to invoke the program specified and to
  43. #    pipe all data into the command.  Only programs that can handle
  44. #    piped input can use this method.  When this method is used
  45. #    a "%s" should not be included in the command.  You should
  46. #    make sure that the program you wish to use can accept piped
  47. #    data by trying something like this before using it:
  48. #       cat "YOUR_DATA_FILE_HERE" | COMMAND_TO_TEST
  49.  
  50. #    You may continue lines by using the backslash character "\"
  51.  
  52. image/x-rgb; imgview %s; compose=imgworks %s; \
  53.     x-mozilla-flags=save; \
  54.     description="RGB Image"; \
  55.     x11-bitmap="/usr/lib/Zmail/bitmaps/image.xbm"
  56. image/x-sgi-bw; imgview %s; compose=imgworks %s; \
  57.     description="SGI b/w image"; \
  58.     x11-bitmap="/usr/lib/Zmail/bitmaps/image.xbm"
  59. image/x-sgi-rgba; imgview %s; compose=imgworks %s; \
  60.     description="SGI RGBA image"; \
  61.     x11-bitmap="/usr/lib/Zmail/bitmaps/image.xbm"
  62. image/x-sgi-image; imgview %s; compose=imgworks %s; \
  63.     description="SGI image"; \
  64.     x11-bitmap="/usr/lib/Zmail/bitmaps/image.xbm"
  65. image/x-bitmap; bitmap %s; description="X11 bitmap"; \
  66.     x11-bitmap="/usr/lib/Zmail/bitmaps/bitmap.xbm"
  67. image/x-xbitmap; bitmap %s; description="X Bitmap"; \
  68.     x11-bitmap="/usr/lib/Zmail/bitmaps/bitmap.xbm"
  69. image/x-xpm1; olpixmap %s; description="OL pixmap"; \
  70.     x11-bitmap="/usr/lib/Zmail/bitmaps/bitmap.xbm"
  71. image/x-xpixmap; pixmap %s; description="X pixmap"; \
  72.     x-mozilla-flags=save; Plugin; \
  73.     x11-bitmap="/usr/lib/Zmail/bitmaps/bitmap.xbm"
  74. image/x-png; ; description="PNG"; \
  75.     x-mozilla-flags=save; \
  76.     x11-bitmap="/usr/lib/Zmail/bitmaps/bitmap.xbm"
  77. image/x-MS-bmp; ; description="PNG"; \
  78.     x-mozilla-flags=save; \
  79.     x11-bitmap="/usr/lib/Zmail/bitmaps/bitmap.xbm"
  80. image/tiff; imgview %s; compose=imgworks %s; description="TIFF Image"; \
  81.     x11-bitmap="/usr/lib/Zmail/bitmaps/image.xbm"
  82. image/gif; imgview %s; compose=imgworks %s; description="GIF Image"; \
  83.      x11-bitmap="/usr/lib/Zmail/bitmaps/image.xbm"
  84. image/jpeg; imgview %s; compose=imgworks %s; description="JFIF Image";\
  85.      x11-bitmap="/usr/lib/Zmail/bitmaps/image.xbm"
  86. image/jpg; imgview %s; compose=imgworks %s; description="JFIF Image";\
  87.      x11-bitmap="/usr/lib/Zmail/bitmaps/image.xbm"
  88. image/x-photo-cd; imgview %s; compose=imgworks %s; \
  89.     description="Photo CD image"; \
  90.     x11-bitmap="/usr/lib/Zmail/bitmaps/image.xbm"
  91. image/*; imgview %s; compose=imgworks %s; description="basic image"; \
  92.     x11-bitmap="/usr/lib/Zmail/bitmaps/image.xbm"
  93.  
  94.  
  95.  
  96. x-music/x-midi;  soundplayer -nofork -nounique %s; \
  97.     description="Standard MIDI Music"; \
  98.     x11-bitmap="/usr/lib/Zmail/bitmaps/sound.xbm"
  99.  
  100. audio/x-aiff; soundplayer -nofork -nounique %s; compose=soundeditor %s;    \
  101.     description="AIFF Audio"; x11-bitmap="/usr/lib/Zmail/bitmaps/sound.xbm"
  102. audio/x-aifc; soundplayer -nofork -nounique %s; compose=soundeditor %s;    \
  103.     description="AIFC Audio"; x11-bitmap="/usr/lib/Zmail/bitmaps/sound.xbm"
  104. audio/x-next; soundplayer -nofork -nounique %s; compose=soundeditor %s;    \
  105.     description="NeXT Audio"; x11-bitmap="/usr/lib/Zmail/bitmaps/sound.xbm"
  106. audio/x-wav; soundplayer -nofork -nounique %s; compose=soundeditor %s;    \
  107.     description="WAV Audio"; x11-bitmap="/usr/lib/Zmail/bitmaps/sound.xbm"
  108. audio/x-mpeg; soundplayer -nofork -nounique %s; \
  109.         description="MPEG Audio"; x11-bitmap="/usr/lib/Zmail/bitmaps/sound.xbm"
  110. audio/x-pn-realaudio; raplayer %s; \
  111.         description="RealAudio "; x11-bitmap="/usr/lib/Zmail/bitmaps/sound.xbm"
  112. #
  113. # use this preferentially to do streaming audio if you have
  114. # the playulaw program
  115. #audio/basic; playulaw; stream-buffer-size=2000
  116. #
  117. # otherwise, if you don't have playulaw, use this
  118. audio/basic; soundplayer -nofork -nounique %s
  119.  
  120. # here is an interesting command that enables you to sit
  121. # in front of a different UNIX machine than the one where
  122. # you are running the Netscape Navigator and still here audio.
  123. #
  124. #audio/basic; rsh YOUR_HOST_HERE /usr/local/bin/playulaw; \
  125. #       test=test `hostname`x != YOUR_HOST_HEREx; stream-buffer-size=2000
  126.  
  127. audio/*; soundplayer -nofork -nounique %s
  128. #
  129. #
  130. # Movieplayer understands SGI, QuickTime, MPEG Video, and MPEG Systems
  131. #
  132. video/x-sgi-movie; movieplayer -v -nofork %s; compose=moviemaker %s; \
  133.     description="SGI Video"; \
  134.     x11-bitmap="/usr/lib/Zmail/bitmaps/movie.xbm"
  135. video/mpeg; movieplayer -v -nofork %s; compose=moviemaker %s; \
  136.     description="MPEG Video"; \
  137.     x11-bitmap="/usr/lib/Zmail/bitmaps/movie.xbm"
  138. video/x-mpeg; movieplayer -v -nofork %s; compose=moviemaker %s; \
  139.     description="MPEG Video"; \
  140.     x11-bitmap="/usr/lib/Zmail/bitmaps/movie.xbm"
  141. video/x-mpeg2; movieplayer -v -nofork %s; compose=moviemaker %s; \
  142.     description="MPEG2 Video"; \
  143.     x11-bitmap="/usr/lib/Zmail/bitmaps/movie.xbm"
  144. video/x-mpeg-system; movieplayer -v -nofork %s; compose=moviemaker %s; \
  145.     description="MPEG Movie"; \
  146.     x11-bitmap="/usr/lib/Zmail/bitmaps/movie.xbm"
  147. video/quicktime; movieplayer -nofork %s; compose=moviemaker %s; \
  148.     description="Quicktime Video"; \
  149.     x11-bitmap="/usr/lib/Zmail/bitmaps/movie.xbm"
  150. video/x-msvideo; movieplayer -v -nofork %s; compose=moviemaker %s; \
  151.     description="Microsoft Video"; \
  152.     x11-bitmap="/usr/lib/Zmail/bitmaps/movie.xbm"
  153. video/msvideo; movieplayer -v -nofork %s; compose=moviemaker %s; \
  154.     description="Microsoft Video"; \
  155.     x11-bitmap="/usr/lib/Zmail/bitmaps/movie.xbm"
  156. #
  157. application/x-xdma; /usr/bin/X11/xnetview %s; \
  158.     description="StreamWorks Viewer"
  159. application/x-enterlicense; /usr/etc/enterlicense %s; \
  160.     description="Software Licensing document"
  161. application/x-licensemgr; /usr/etc/LicenseManager %s; \
  162.     description="Software License Installation"
  163. application/x-install; /usr/sbin/SoftwareManager -F %s \
  164.     -Vauto_inst_new:F -Vauto_inst_upgrades:F -Vbackground:F ; \
  165.     description="Automatic inst installation"
  166. application/x-showcase; showcase -v -f %s; \
  167.     compose=showcase %s; description="Showcase document"; \
  168.     x11-bitmap="/usr/lib/Zmail/bitmaps/showcase.xbm"
  169. application/x-framemaker; /usr/frame/bin/fmclient -f %s; \
  170.     compose=fmclient -f %s; description="FrameMaker document"; \
  171.     x11-bitmap="/usr/lib/Zmail/bitmaps/frame.xbm"
  172. application/x-wingz; Wingz %s; compose=Wingz %s; \
  173.     description="Wingz document"; \
  174.     x11-bitmap="/usr/lib/Zmail/bitmaps/wingz.xbm"
  175. application/x-SYLK; Wingz %s; compose=Wingz %s; \
  176.     description="Spreadsheet in SYLK format"; \
  177.     x11-bitmap="/usr/lib/Zmail/bitmaps/wingz.xbm"
  178. graphics/x-inventor; /usr/sbin/webspace -remote %s -URL %u ; \
  179.     x-mozilla-flags=save; \
  180.     description="Inventor file"; \
  181.     x11-bitmap="/usr/lib/Zmail/bitmaps/inventor.xbm"
  182. application/x-inventor; /usr/sbin/webspace -remote %s -URL %u ; \
  183.     x-mozilla-flags=plugin:libcosmoplayer.so; \
  184.     description="Inventor file"; \
  185.     x11-bitmap="/usr/lib/Zmail/bitmaps/inventor.xbm"
  186. model/vrml;  /usr/sbin/webspace -remote %s -URL %u ; \
  187.     x-mozilla-flags=plugin:libcosmoplayer.so; \
  188.     description="VRML document"
  189. x-world/x-vrml;  /usr/sbin/webspace -remote %s -URL %u ; \
  190.     x-mozilla-flags=plugin:libcosmoplayer.so; \
  191.     description="VRML document"
  192. application/postscript; /usr/bin/X11/xpsview %s; \
  193.     description="PostScript Document";
  194. application/x-annotator; /usr/sbin/annotator -v -r %s; \
  195.     description="IRIS Annotator file"; compose=/usr/sbin/annotator %s; \
  196.     x11-bitmap="/usr/lib/Zmail/bitmaps/inventor.xbm"
  197. application/x-tardist; tardist %s; description="SGI inst tar distribution"
  198. application/pdf; acroread %s; description="Portable Document Format"
  199. application/x-iconbook; /usr/sbin/iconbook; \
  200.     description="IconBook"; \
  201.     x11-bitmap="/usr/lib/Zmail/bitmaps/inventor.xbm"
  202. application/x-inpview; /usr/lib/InPerson/inpview -wbfile %s; \
  203.     description="InPerson Whiteboard file"; \
  204.     x11-bitmap="/usr/lib/Zmail/bitmaps/inventor.xbm"
  205. application/x-inperson-call; /usr/lib/InPerson/inpcontrol -f %s; \
  206.     description="An InPerson Call Jumper"
  207. application/x-mailfolder; /usr/bin/X11/zmail -gui -folder %s; \
  208.         description="Zmail folder file"; compose=/usr/bin/X11/zmail -gui %s; \
  209.         x11-bitmap="/usr/lib/Zmail/bitmaps/inventor.xbm"
  210. application/x-ppages; /usr/sbin/peoplepages; \
  211.     description="InPerson PeoplePages"; \
  212.     x11-bitmap="/usr/lib/Zmail/bitmaps/inventor.xbm"
  213. application/x-dirview; /usr/sbin/dirview -nofork %s; \
  214.         description="desktopManager Directory View"; \
  215.         x11-bitmap="/usr/lib/Zmail/bitmaps/inventor.xbm"
  216. application/x-rapidapp; /usr/sbin/rapidapp %s; \
  217.     description="RapidApp file"
  218. application/x-wsNt; wsNt -URL %u -remote %s ; \
  219.     description="Surf N Tell data stream"
  220. application/x-csNt; wsNt -URL %u -remote %s ; \
  221.     description="Surf N Tell control"
  222. application/x-sdr; /usr/local/lib/netscape/sdr-launch %u %s ; \
  223.     description="Session Directory Tool Launcher"
  224. application/x-sgi-task; /usr/sysadm/bin/runtask %s; \
  225.     description="System Administration Task"
  226. application/x-sgi-catalog; /usr/sysadm/bin/runcatalog %s; \
  227.     description="System Administration Catalog"
  228. application/x-sgi-exec; /usr/sysadm/bin/runexec %s; \
  229.     description="System Administration Executable"
  230. application/x-sgi-glossary; /usr/sysadm/bin/glossary %s; \
  231.     description="System Administration Glossary"
  232. application/x-sgimb; /usr/mbase/sbin/streamplayer -file %s -play
  233. application/x-sgi-outbox-exec; /usr/sbin/outbox-exec -nofork %s
  234. #application/x-director;; x-mozilla-flags=save;
  235.  
  236. x-conference/x-cooltalk; /usr/local/lib/netscape/cooltalk/cooltalk %s
  237.  
  238. application/x-excel; /usr/local/lib/netscape/swinexec %s excel; \
  239.     description="Microsoft Excel Document";
  240. application/msexcel; /usr/local/lib/netscape/swinexec %s excel; \
  241.     description="Microsoft Excel Document";
  242. application/x-dos_ms_excel; /usr/local/lib/netscape/swinexec %s excel; \
  243.     description="Microsoft Excel Document";
  244. application/x-dos_ms_word; /usr/local/lib/netscape/swinexec %s winword; \
  245.     description="Microsoft Word-for-Windows Document";
  246. application/msword; /usr/local/lib/netscape/swinexec %s winword; \
  247.     description="Microsoft Word-for-Windows Document";
  248. application/mspowerpoint; /usr/local/lib/netscape/swinexec %s powerpnt; \
  249.     description="Microsoft PowerPoint Document";
  250. application/x-dos_ms_powerpnt; /usr/local/lib/netscape/swinexec %s powerpnt; \
  251.     description="Microsoft PowerPoint Document";
  252. application/x-dos_ms_access; /usr/local/lib/netscape/swinexec %s msaccess; \
  253.     description="Microsoft Access Document";
  254. application/x-dos_ms_msaccess; /usr/local/lib/netscape/swinexec %s msaccess; \
  255.     description="Microsoft Access Document";
  256. application/x-dos_fmpro; /usr/local/lib/netscape/swinexec %s fmpro; \
  257.     description="FileMaker Pro Document";
  258. application/x-dos_claris_fm; /usr/local/lib/netscape/swinexec %s fmpro; \
  259.     description="FileMaker Pro Document";
  260.  
  261. application/x-sh;  sh %s; description="Bourne shell"
  262. application/x-csh; /bin/csh -f %s; description="C shell"
  263. application/x-perl;  /usr/sbin/perl %s; description="Perl script"
  264.  
  265. video/mvptr;/usr/sbin/movieplayer `cat %s`
  266.  
  267. default; cat %s; copiousoutput
  268.